package com.twl.app.base.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 日期模板
 * @author uatzhangxc
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "CheckDate")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_CHECKDATE_DID", allocationSize = 1)
public class CheckDate implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer did ;		//主键
	private String yearmonth ;	//年月
	private String outforworkdate ;	//月应出勤日期
	private Date workdate ;  //出勤的日期
	private Integer iswork ; //是否算出勤日     0:工作日和国家节假日  1：周末双休
	

	

	public CheckDate(Integer did, String yearmonth, String outforworkdate,
			Date workdate, Integer iswork) {
		super();
		this.did = did;
		this.yearmonth = yearmonth;
		this.outforworkdate = outforworkdate;
		this.workdate = workdate;
		this.iswork = iswork;
	}

	public CheckDate() {
		super();
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	
	
	@Column(name = "yearmonth" )
	public String getYearmonth() {
		return yearmonth;
	}

	public void setYearmonth(String yearmonth) {
		this.yearmonth = yearmonth;
	}

	@Column(name = "outforworkint" )
	public String getOutforworkdate() {
		return outforworkdate;
	}

	public void setOutforworkdate(String outforworkdate) {
		this.outforworkdate = outforworkdate;
	}
	
	@Column(name = "workdate" )
	public Date getWorkdate() {
		return workdate;
	}

	public void setWorkdate(Date workdate) {
		this.workdate = workdate;
	}

	@Column(name = "iswork" )
	public Integer getIswork() {
		return iswork;
	}

	public void setIswork(Integer iswork) {
		this.iswork = iswork;
	}

	@Override
	public String toString() {
		return "CheckDate [did=" + did + ", yearmonth=" + yearmonth
				+ ", outforworkdate=" + outforworkdate + ", workdate="
				+ workdate + ", iswork=" + iswork + "]";
	}

	

}
